package org.ling.xuan.dialog;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.DialogWrapper;
import com.intellij.ui.components.JBTabbedPane;
import org.jetbrains.annotations.Nullable;
import org.ling.xuan.pannel.LocalAddListPanel;
import org.ling.xuan.pannel.SendListPanel;
import org.ling.xuan.pannel.UploadListPanel;

import javax.swing.*;

public class ShowListDialog extends DialogWrapper {
    private JBTabbedPane tabbedPane;
    private final LocalAddListPanel addListPanel;
    private SendListPanel sendListPanel;
    private UploadListPanel uploadListPanel;

    public ShowListDialog(@Nullable Project project, boolean canBeParent) {
        super(project, canBeParent);
        tabbedPane = new JBTabbedPane();
        setTitle("History");
        tabbedPane = new JBTabbedPane();
        tabbedPane.addTab("Add List", addListPanel = new LocalAddListPanel(project));
   /*     tabbedPane.addTab("Send List", sendListPanel = new SendListPanel(SendRecordDao.list()));
        tabbedPane.addTab("Upload List", uploadListPanel = new UploadListPanel(UploadRecordDao.list()));*/
        init();
    }

    @Override
    protected @Nullable JComponent createCenterPanel() {
        return tabbedPane;
    }
}
